package jsyf.oa.entity.device;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "T_DVC_BRAND_STOCK", schema = "oa", catalog = "")
public class BrandStrockEntity extends BaseEntity implements Serializable {

    private String brandId;//品牌ID
    private Integer type;//提货类型
    private Integer sortNo;//排序
    private String contactTel;//联系人电话
    private String contact;//联系人
    private String brandAddress;//品牌地址

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getBrandAddress() {
        return brandAddress;
    }

    public void setBrandAddress(String brandAddress) {
        this.brandAddress = brandAddress;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("BRAND_ID", this.getBrandId());
        obj.put("TYPE", this.getType());
        obj.put("CONTACT_TEL", this.getContactTel());
        obj.put("CONTACT", this.getContact());
        obj.put("SORT_NO", this.getSortNo());
        obj.put("BRAND_ADDRESS", this.getBrandAddress());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_DVC_BRAND_STOCK";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("BRAND_ID", "brandId");
        obj.put("TYPE", "type");
        obj.put("CONTACT_TEL", "contactTel");
        obj.put("CONTACT", "contact");
        obj.put("SORT_NO", "sortNo");
        obj.put("BRAND_ADDRESS", "brandAddress");
        return obj;
    }

}

